<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SVIP会员-<?php echo $cfg_webname;?></title>
<link href="<?php echo $cfg_basehost;?>/css/v2_index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo $cfg_basehost;?>/js/jquery.superslide.2.1.1.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $cfg_basehost;?>/system/gzs.ajax.js"></script>
<script type="text/javascript">
function CheckLogintop(){
var taget_obj = document.getElementById('_userlogin');
myajax = new DedeAjax(taget_obj,false,false,'','','');
myajax.SendGet2("/user/ajax_loginsta.php");
DedeXHTTP = null;
}
</script>
<style type="text/css">
.meTitle{color:#333;line-height:30px;font-size:14px;margin:15px 0;}
.dwz-viptc{line-height:30px;padding-top:20px;color:#666;font-size:14px;}
.postForm{overflow:hidden;}
.button2{width:150px;line-height:40px;background:#23b8ff;color:#fff;cursor:pointer;font-size:14px;padding:0;margin-top:30px;font-family:"Microsoft Yahei","微软雅黑","MicrosoftJhengHei","华文细黑","Hiragino Sans GB","sans-serif";font-weight:700;float:right;}
.button2:hover{background:#12a7ff;color:#fff;}

/*SVIP会员套餐*/
.sel-vip{overflow:hidden;padding-top:5px;}
.sel-vip li{width:270px;position:relative;margin-right:15px;text-align:center;background:#fff9f1;border:2px solid #e2c5a0;border-radius:10px;cursor:pointer;}
.sel-vip li.on{background:#fff;border-color:#ff700a;}
.sel-vip li:last-child{margin-right:0;}
.sel-vip .right-top{height:34px;line-height:34px;font-size:16px;color:#fff;padding:0 15px;position:absolute;top:-2px;right:-2px;border-radius:0 10px 0 10px;background:linear-gradient(90deg,#fe4f37 0,#fe9440 100%);}
.sel-vip .jjpaytype{padding-bottom:10px;}
.sel-vip .pc-vip-name{font-size:32px;color:#333;font-weight:700;padding:40px 0 25px;margin:0 24px;border-bottom:2px solid #e2c5a0}
.sel-vip .on .pc-vip-name{border-color:#ff700a;}
.sel-vip .price-c{font-size:20px;color:#ff700a;font-weight:700;padding:20px 0;white-space:nowrap;}
.sel-vip .price-c strong{font-size:32px;margin:0 5px}
.sel-vip .price-c em{text-decoration:line-through;color:#999;font-weight:400;margin-left:10px}

/*SVIP开通注意事项*/
.vip-zyxs-box{margin-top:30px;}
.vip-zyxs-box h3{font-size:16px;color:#333;padding:15px 0;}
.vip-zyxs-box p{line-height:26px;padding-bottom:10px;color:#666;font-size:14px;}
.vip-zyxs-box p strong{padding-right:5px;}

/*用户信息*/
.cash-info{height:50px;padding:15px 0 15px;overflow:hidden;}
.cash-info .info-pic{width:50px;height:50px;display:inline-block;vertical-align:middle;border-radius:50%;margin-right:15px;}
.cash-info .info-user-wrap{display:inline-block;vertical-align:middle;}
.cash-info .user-info{height:20px;line-height:20px;}
.cash-info .user-name{float:left;font-size:16px;color:#333;height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:6px;}
.cash-info .user-info img{float:left;width:20px;height:20px;vertical-align:top;}
.cash-info .user-tips{height:18px;line-height:18px;font-size:14px;color:#666;margin-top:6px;}
</style>
</head>
<body>

<?php include(DEDEMEMBER."/templets/head.htm");?>
<?php include(DEDEMEMBER."/templets/left.htm");?>

<!-- 右侧功能定位 -->
<div class="user-right">
<div class="uc-box uc-main-box">
<div class="uc-content-box order-list-box">
<div class="box-hd"><h1 class="title">SVIP会员</h1></div>

<!-- 用户信息 -->
<div class="cash-info">
<img class="info-pic" src="<?php echo $cfg_ml->fields['face'];?>">
<div class="info-user-wrap">
<div class="user-info">
<span class="user-name"><?php echo $cfg_ml->M_UserName; ?></span>
<?php if ($cfg_ml->M_Rank > 10){echo '<img src="/images/person-vip2.png">';} else{echo '<img src="/images/person-vip1.png">';}?>
</div>
<div class="user-tips"><?php if ($cfg_ml->M_Rank > 10){echo '您的SVIP将于<span style="color:#044ef5">'.$mhasDay.'天</span>后到期';} else{echo '您目前还不是会员哦~';}?></div>
</div>
</div>
<!-- 用户信息 End -->

<div class="dwz-viptc">一次开通，全站课程免费学</div>
<!-- SVIP会员开通 -->
<div class="postForm">
<form name="f1" action="buy_action.php" method="post">
<input type="hidden" name="product" value="member" />
<input type="radio" checked name="pid" class="paytypeinp" value="5" style="display:none" />
<div class="sel-vip">
<ul class="clearfix jjpaytype">
<?php
$dsql->SetQuery("Select * From #@__member_type where aid=5");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<li class="fl on" val="5">
<div class="pc-vip-list">
<div class="right-top">推荐</div>
<div class="pc-vip-name"><?php echo $row->pname?></div>
<div class="price-c">¥<strong><?php echo $row->money?></strong><em>¥<?php echo $row->yuanjia?></em></div>
</div>
</li>
<?php
}
?>

<?php
$dsql->SetQuery("Select * From #@__member_type where aid=6");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<li class="fl" val="6">
<div class="pc-vip-list">
<div class="pc-vip-name"><?php echo $row->pname?></div>
<div class="price-c">¥<strong><?php echo $row->money?></strong><em>¥<?php echo $row->yuanjia?></em></div>
</div>
</li>
<?php
}
?>

<?php
$dsql->SetQuery("Select * From #@__member_type where aid=7");
$dsql->Execute();
$k=0;
while($row = $dsql->GetObject())
{
$k++;
?>
<li class="fl" val="7">
<div class="pc-vip-list">
<div class="pc-vip-name"><?php echo $row->pname?></div>
<div class="price-c">¥<strong><?php echo $row->money?></strong><em>¥<?php echo $row->yuanjia?></em></div>
</div>
</li>
<?php
}
?>
</ul>
</div>

<button class="button2" type="submit"><?php if ($cfg_ml->M_Rank > 10){echo '购买会员';} else{echo '购买会员';}?></button>
</form>
</div>
<!-- SVIP会员开通 End -->

<!-- SVIP开通注意事项 -->
<div class="vip-zyxs-box">
<?php 
$row = $dsql->GetOne("SELECT * FROM `biz_arctype` WHERE id=69");
echo "".$row['content']."";
?>
</div>
<!-- SVIP开通注意事项 End -->

</div>
</div>
</div>
<!-- 右侧功能定位 End -->

</div>

<?php include(DEDEMEMBER."/templets/footer.htm");?>

<script>
$(".jjpaytype li").click(function(){
var aid = $(this).attr("val");	
$(".paytypeinp").val(aid);
$(".jjpaytype li").removeClass("on");
$(this).addClass("on");
})
</script>

</body>
</html>